
CC := $(CROSSCOMPILE)gcc
AR := $(CROSSCOMPILE)ar

CFLAGS += -Wall

SRCS=$(wildcard *.c *.h)
SSRCS=$(filter-out sh2Carray.c, $(SRCS))
OBJS=$(subst .c,.o,$(SSRCS))

all:sh2Carray $(OBJS)

sh2Carray:
	gcc sh2Carray.c -o sh2Carray
	./sh2Carray

%.o:%.c
	$(CC) -c $(CFLAGS) $(CFLAGS_WD) $< -o $@ 

clean:
	rm -f *.o

.PHONY:clean all sh2Carray